/**
    ******************************************************************************
    * @file    stack.h
    * @author  debian
    * @version V1.0.0
    * @date    2019-11-30
    * @brief   栈
    ******************************************************************************
    * @attention
    *
    *
    ******************************************************************************
    */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STACK_H
#define __STACK_H

#ifdef __cplusplus
    extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/



/** @addtogroup DataStruct_Driver
    * @{
    */
typedef int Elemtype;


typedef struct Stack
{
	int 		top;				//栈顶指针
	int			size;				//栈的大小
	Elemtype 	*data;				//栈的元素
}_Stack;


/** @addtogroup stack
    * @{
    */

/* Exported types ------------------------------------------------------------*/
/** @defgroup 
    * @{
    */ 



/**
    * @}
    */


/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/ 
/* Initialization and de-initialization functions *******************************/
/** @addtogroup stack_Exported_Functions
    * @{
    */

/** @addtogroup stack_Exported_Functions_Group1
    * @{
    */
    int stack_creat(struct Stack *s, int size);
    int stack_destroy(struct Stack *s);

/**
    * @}
    */

/* operation functions *******************************************************/
/** @addtogroup stack_Exported_Functions_Group2
    * @{
    */



/**
    * @}
    */

/**
    * @}
    */ 

/**
    * @}
    */

/**
    * @}
    */


#ifdef __cplusplus
}
#endif

#endif /* __STACK_H */

/******************* (C) 2019 HOME 深圳龙华 *****END OF FILE****/

